package com.pym.tool.room.dao

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import com.pym.tool.room.entity.MoneyEntity

@Dao
interface MoneyDao {


    /**
     * 增
     * 返回该数据的rowID
     */
    @Insert
    suspend fun save(vararg entity: MoneyEntity): Long

    /**
     *  删
     *  返回该数据的Int值，代表删除的行数
     */
    @Delete
    suspend fun delete(vararg entity: MoneyEntity): Int
    //查
    //改

}